/**
 * 
 */
package it.polimi.traveldream.web.beans;

import it.polimi.traveldream.web.helper.MessageStrings;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.SessionScoped;

@ManagedBean(name = "navigationBean")
@RequestScoped
public class navigationBean {

	/*
	 * Costanti
	 */
	String mandatory_field = MessageStrings.MANDATORY_FIELD;

	String correct_insert = MessageStrings.CORRECT_INSERT;

	String new_product = MessageStrings.NEW_PRODUCT;

	private String newProductChoose;
	private MessageStrings messageStrings;

	/**
	 * passaggio parametro choose per la scelta del prodotto da inserire
	 * 
	 * @return
	 */
	public String toNewProductFilter() {
		return "/admin/product/insertProduct?choose=" + newProductChoose
				+ "&faces-redirect=true";
	}

	public String toProductDetail(String productId) {
		return "/admin/product/ProductDetail?productId=" + productId
				+ "&faces-redirect=true";
	}
	
	public String toPackageDetail(String packageId) {
		return "/admin/package/PackageDetail?packageId=" + packageId
				+ "&faces-redirect=true";
		
		
	}

	public String getNew_product() {
		return new_product;
	}

	public void setNew_product(String new_product) {
		this.new_product = new_product;
	}

	public String getCorrect_insert() {
		return correct_insert;
	}

	public void setCorrect_insert(String correct_insert) {
		this.correct_insert = correct_insert;
	}

	public String getMandatory_field() {
		return mandatory_field;
	}

	public void setMandatory_field(String mandatory_field) {
		this.mandatory_field = mandatory_field;
	}

	public MessageStrings getMessageStrings() {
		return messageStrings;
	}

	public void setMessageStrings(MessageStrings messageStrings) {
		this.messageStrings = messageStrings;
	}

	public String getNewProductChoose() {
		return newProductChoose;
	}

	public void setNewProductChoose(String newProductChoose) {
		this.newProductChoose = newProductChoose;
	}

}
